﻿@using MvcSystemsCommander.Extensions.Html
@model MvcSystemsCommander.Models.ViewModel.LoginInputModel
@{
    ViewBag.Title = "Login";
}
@section head {
    <style type="text/css">
        .login {
            padding-top: 55px;
        }

        .center {
            float: none;
            margin-left: auto;
            margin-right: auto;
        }
    </style>
}
@using (Html.BeginForm("Login", "Account", FormMethod.Post, null))
{
    <div class="container login">
        <div class="row ">
            <div class="center span4 well">
                @if (ViewData.ModelState.Values.Any(x => x.Errors.Count > 0))
                {
                    <div class="alert alert-error">
                        <a class="close" data-dismiss="alert" href="#">×</a>@Html.CustomValidationSummary()
                    </div>
                }
                <fieldset>
                    <legend>Login</legend>
                    @Html.TextBoxFor(u => u.Username, new { @class = "span4", @placeholder = "Username" })
                    @Html.TextBoxFor(u => u.Password, new { @class = "span4", @placeholder = "Password" })
                    <button type="submit" name="submit" class="btn btn-primary btn-block">Sign in</button>
                </fieldset>
            </div>
        </div>
    </div>
}
